/* 
 * Copyright [2018] [Alex/libo(liboware@gmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.infodb.gateway.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


import com.hyts.infodb.bean.po.BasePO;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/** 
 * @author LiBo/Alex
 * @see com.hyts.infodb.bean.po.BasePO
 * @since V1.0
 * @version V1.0 
 */
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name="TBL_GATEWAY")
@Data
@Accessors(chain=true)
public class RouteDefinitionPO extends BasePO{
    
    /**  
     * @fieldName name
     * @fieldType String
     */
    @Column(name="NAME")
    private String name;
    
    /**
     * 用作处理注册中心的应用名称使用
     */
    @Column(name="SERVICE_ID")
    private String serviceId;
    
    /**  
     * <p>映射转发的url路径</p> 
     * @fieldName url
     * @fieldType String
     */ 
    @Column(name="URL")
    private String url;
    
    /**  
     * <p>令牌桶流速</p> 
     * @fieldName limitRate
     * @fieldType Integer
     */
    @Column(name="LIMIT_RATE")
    private Integer limitRate;
    
    /**  
     * <p>令牌桶容量</p> 
     * @fieldName limitCapacity
     * @fieldType Integer
     */ 
    @Column(name="LIMIT_CAPACITY")
    private Integer limitCapacity;
    
    /**  
     * <p>状态</p> 
     * @fieldName status
     * @fieldType Byte
     */ 
    @Column(name="STATUS")
    private Byte status;
    
    /**  
     * <p>路由顺序编号优先级</p> 
     * @fieldName routeOrder
     * @fieldType Integer
     */ 
    @Column(name="ROUTE_ORDER")
    private Integer routeOrder;
    
    /**  
     * @fieldName predicates
     * @fieldType String
     */ 
    @Column(name="PREDICATES")
    private String predicates;
    
    
    /**  
     * @fieldName filters
     * @fieldType String
     */ 
    @Column(name="FILTERS")
    private String filters;
    
    
    @Column(name="PATH")
    private String path;
    
}
